<?php /* Smarty version 2.6.20, created on 2009-10-25 10:43:49
         compiled from edit_team.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'edit_team.tpl', 1, false),array('function', 'html_options', 'edit_team.tpl', 49, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "test.conf",'section' => 'setup'), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="main_pane">

<h1>Edit Team</h1>
<?php if ($this->_tpl_vars['access_denied']): ?>
	Access Denied: <?php echo $this->_tpl_vars['access_denied']; ?>

<?php else: ?>
	
	<div id="primary_<?php echo $this->_tpl_vars['level']; ?>
">
	<p>
	<?php echo $this->_tpl_vars['primary']; ?>

	</p>
	</div>
	
	<div id="error_string">
	<p>
	<?php unset($this->_sections['error_list']);
$this->_sections['error_list']['name'] = 'error_list';
$this->_sections['error_list']['loop'] = is_array($_loop=$this->_tpl_vars['error_string']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['error_list']['show'] = true;
$this->_sections['error_list']['max'] = $this->_sections['error_list']['loop'];
$this->_sections['error_list']['step'] = 1;
$this->_sections['error_list']['start'] = $this->_sections['error_list']['step'] > 0 ? 0 : $this->_sections['error_list']['loop']-1;
if ($this->_sections['error_list']['show']) {
    $this->_sections['error_list']['total'] = $this->_sections['error_list']['loop'];
    if ($this->_sections['error_list']['total'] == 0)
        $this->_sections['error_list']['show'] = false;
} else
    $this->_sections['error_list']['total'] = 0;
if ($this->_sections['error_list']['show']):

            for ($this->_sections['error_list']['index'] = $this->_sections['error_list']['start'], $this->_sections['error_list']['iteration'] = 1;
                 $this->_sections['error_list']['iteration'] <= $this->_sections['error_list']['total'];
                 $this->_sections['error_list']['index'] += $this->_sections['error_list']['step'], $this->_sections['error_list']['iteration']++):
$this->_sections['error_list']['rownum'] = $this->_sections['error_list']['iteration'];
$this->_sections['error_list']['index_prev'] = $this->_sections['error_list']['index'] - $this->_sections['error_list']['step'];
$this->_sections['error_list']['index_next'] = $this->_sections['error_list']['index'] + $this->_sections['error_list']['step'];
$this->_sections['error_list']['first']      = ($this->_sections['error_list']['iteration'] == 1);
$this->_sections['error_list']['last']       = ($this->_sections['error_list']['iteration'] == $this->_sections['error_list']['total']);
?>
	<?php echo $this->_tpl_vars['error_string'][$this->_sections['error_list']['index']]; ?>
</br>
	<?php endfor; endif; ?>
	</p>
	</div>
	
	<div id="command">
	<p>
	<?php echo $this->_tpl_vars['command']; ?>

	</p>
	</div>
	
	
	
	<?php if ($this->_tpl_vars['delete_success']): ?>
	
	<?php else: ?>
	<form action="<?php echo $this->_tpl_vars['SCRIPT_NAME']; ?>
" method="post" enctype="multipart/form-data">
		
		<table border="1">
			<tr>
		        <td>ID</td>
		        <td><?php echo $this->_tpl_vars['team']['ID']; ?>
<input type="hidden" name="ID" value="<?php echo $this->_tpl_vars['team']['ID']; ?>
"></td>
		    </tr>	    
		   <tr>
		        <td>Team Name</td>
		        <td><input type="text" name="Team_Name" value="<?php echo $this->_tpl_vars['team']['TEAM_NAME']; ?>
" size="40"></td>
		    </tr>
		    <tr>
		        <td>Represents</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Represents','size' => 1,'options' => $this->_tpl_vars['represents_list'],'selected' => $this->_tpl_vars['represents_selection']), $this);?>
</td>
	  	    </tr>  	    	    
		    <tr>
		        <td>Comments</td>
		        <td><textarea cols="50" rows="4" name="Comments"><?php echo $this->_tpl_vars['team']['COMMENTS']; ?>
</textarea></td>
		    </tr>
		    <tr>
		        <td>Team Member 1 (Captain)</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id1','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID1']), $this);?>
</td>	    
		    </tr>
		    <tr>
		        <td>Team Member 2</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id2','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID2']), $this);?>
</td>	    
		    </tr>
		    <tr>
		        <td>Team Member 3</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id3','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID3']), $this);?>
</td>	    
		    </tr>
		    <tr>
		        <td>Team Member 4</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id4','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID4']), $this);?>
</td>	    
		    </tr>
		    <tr>
		        <td>Team Member 5</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id5','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID5']), $this);?>
</td>	    
		    </tr>
		    <tr>
		        <td>Team Member 6</td>
		        <td><?php echo smarty_function_html_options(array('name' => 'Team_Competitor_id6','size' => 1,'options' => $this->_tpl_vars['competitors_select_list'],'selected' => $this->_tpl_vars['team']['TEAM_COMPETITOR_ID6']), $this);?>
</td>	    
		    </tr>	    	    	    	    	    
		    <tr>
		        <td>Events</br>(Hold down CTRL to </br>select multiple events.)</td>
		        <td><?php echo smarty_function_html_options(array('name' => "Events[]",'size' => 6,'multiple' => true,'options' => $this->_tpl_vars['events_list'],'selected' => $this->_tpl_vars['events_selection']), $this);?>
</td>
		    </tr>		    
		    <tr>
		        <td>Last Updated</td>
		        <td><?php echo $this->_tpl_vars['team']['LAST_UPDATED']; ?>
</td>
		    </tr>	    	    	    
		    <tr>
		        <td colspan="2" align="center"><input type="submit" value="Submit" name="Submit">&nbsp;&nbsp;<input type="submit" value="Delete" name="Delete">&nbsp;&nbsp;or <a href="edit_team.php?ID=new">Add New Team</a></td>
		    </tr>
	
	</form>
	<?php endif; ?>

<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>
